package com.blog.dao;

import com.blog.pojo.MBlog;
import com.blog.pojo.MBlogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MBlogMapper {
    int countByExample(MBlogExample example);

    int deleteByExample(MBlogExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MBlog record);

    int insertSelective(MBlog record);

    List<MBlog> selectByExampleWithBLOBs(MBlogExample example);

    List<MBlog> selectByExample(MBlogExample example);

    MBlog selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MBlog record, @Param("example") MBlogExample example);

    int updateByExampleWithBLOBs(@Param("record") MBlog record, @Param("example") MBlogExample example);

    int updateByExample(@Param("record") MBlog record, @Param("example") MBlogExample example);

    int updateByPrimaryKeySelective(MBlog record);

    int updateByPrimaryKeyWithBLOBs(MBlog record);

    int updateByPrimaryKey(MBlog record);

	List<MBlog> selectByName(String title);

	List<MBlog> selectByCategoryId(Integer categoryid);
}  